package com.dy.design_pattern_study.state_pattern.dome3.impl;

import com.dy.design_pattern_study.state_pattern.dome3.State;
import com.dy.design_pattern_study.state_pattern.dome3.entry.Work;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-06
 * @Content 下班状态
 */
public class RestState extends State {
    @Override
    public void writeProgram(Work work) {
        System.out.println("下班咯，回家咯，当前时间 = " + work.getHour());
    }
}
